using SageKing.Designer.BlazorServer.HostedServices;
using Microsoft.Extensions.DependencyInjection;
using SageKing.Designer.Core.Extensions;
using SageKing.Studio.BaseJSInterop.Extensions;

namespace SageKing.Studio.Extensions;

/// <summary>
/// Contains extension methods for the <see cref="IServiceCollection"/> interface.
/// </summary>
public static class ServiceCollectionExtensions
{
    /// <summary>
    /// Adds core services with Blazor Server implementations.
    /// </summary>
    public static IServiceCollection AddDesignerCoreX6(this IServiceCollection services)
    {
        services
            .AddDesignerCore()
            .AddDesignerBlazorX6();

        return services;
    }
}